<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head>
<base href="<%=request.getContextPath()%>/" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="css/bootstrap-theme.min.css" />
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<title>Insert title here</title>
</head>
<body>

	<div class="container">
		<nav class="navbar navbar-default" role="navigation">
	<div class="container-fluid">
    <div class="navbar-header">
        <a class="navbar-brand">项目详情模块</a>
    </div>
    <div>
        <form class="navbar-form navbar-left" role="search">
            <div class="form-group">
                <input type="text" class="form-control" placeholder="Search">
            </div>
            <button type="submit" class="btn btn-default">搜索</button>
        </form>
    </div>
	</div>
</nav>
	</div>
		请选中需要查看的类别<br>
		项目周期<input type="checkbox" id="id1" name="a">
		项目简介<input type="checkbox" id="id2" name="a">
		项目投资<input type="checkbox" id="id3" name="a">
		包保领导人<input type="checkbox" id="id4" name="a">
		责任人<input type="checkbox" id="id5" name="a">
		项目经理<input type="checkbox" id="id6" name="a">
		项目秘书<input type="checkbox" id="id7" name="a">
		推进计划<input type="checkbox" id="id8" name="a">
		施工单位<input type="checkbox" id="id9" name="a">
		全选<input type="checkbox" onclick="selectAll(this)" />
		<input type="button" onclick="aaa()" value="确认"/><br>
		项目名称&nbsp;${iwb.itemName }<br>
		<div style="display: none;" id="id11">
			项目周期&nbsp;${iwb.itemTime }
		</div>
		<div style="display: none;" id="id21">
			项目简介&nbsp;${iwb.itemDetail }
		</div>
		<div style="display: none;" id="id31">
			项目投资&nbsp;${iwb.itemMoney }
		</div>
		<div style="display: none;" id="id41">
			包保负责人&nbsp;${iwb.itemHead }
		</div>
		<div style="display: none;" id="id51">
			责任人&nbsp;${iwb.itemLiable }
		</div>
		<div style="display: none;" id="id61">
			项目经理&nbsp;${iwb.itemHandlers }
		</div>
		<div style="display: none;" id="id71">
			项目秘书&nbsp;${iwb.itemSec }
		</div>
		<div style="display: none;" id="id81">
			推进计划&nbsp;${iwb.itemDoplan }<a href="plan/find?planName=${iwb.itemDoplan }">点击查看详情</a>
		</div>
		<div style="display: none;" id="id91">
			施工方&nbsp;${iwb.itemWhodo }
		</div>
</body>
</html>

<script>
	function selectAll (item) {
		var aa=document.getElementsByName("a")
		if(item.checked){
			for (var i=0;i<aa.length;i++) {
				aa[i].checked=true;
			}
		}else{
			for (var i=0;i<aa.length;i++) {
				aa[i].checked=false;
			}
		}
	}
	function aaa () {
		if($("#id1").is(":checked")){
			$("#id11").show();
		}else{
			$("#id11").hide();
		}
		if($("#id2").is(":checked")){
			$("#id21").show();
		}else{
			$("#id21").hide();
		}
		if($("#id3").is(":checked")){
			$("#id31").show();
		}else{
			$("#id31").hide();
		}
		if($("#id4").is(":checked")){
			$("#id41").show();
		}else{
			$("#id41").hide();
		}
		if($("#id5").is(":checked")){
			$("#id51").show();
		}else{
			$("#id51").hide();
		}
		if($("#id6").is(":checked")){
			$("#id61").show();
		}else{
			$("#id61").hide();
		}
		if($("#id7").is(":checked")){
			$("#id71").show();
		}else{
			$("#id71").hide();
		}
		if($("#id8").is(":checked")){
			$("#id81").show();
		}else{
			$("#id81").hide();
		}
		if($("#id9").is(":checked")){
			$("#id91").show();
		}else{
			$("#id91").hide();
		}
	}
</script>